package code._14thread._02implone;

public class Demo2 {
    public static void main(String[] args) {
        System.out.println("main start");
        MyThread2 t = new MyThread2();
        t.start();
        MyThread2 t1 = new MyThread2();
        t1.start();
        System.out.println("main----end");
    }
}

class MyThread2 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("t-----"+i);
        }
    }
}
